package com.eureka;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.context.annotation.Bean;
import org.springframework.web.client.RestTemplate;

@SpringBootApplication
@EnableEurekaClient //表示注册到eureka注册中心
public class AppMember01 {



    public static void main(String[] args) {
        SpringApplication.run(AppMember01.class,args);
    }


    @Bean
    public RestTemplate restTemplate(){
        return new RestTemplate();
    }
}
